home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / viewwnd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  2.3 KB  |  87 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. #if !defined(AFX_VIEWWND_H__101E4613_73CC_11D2_82DA_006052012837__INCLUDED_)
  12. #define AFX_VIEWWND_H__101E4613_73CC_11D2_82DA_006052012837__INCLUDED_
  13.  
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. // ViewWnd.h : header file
  18. //
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CPreviewWnd window
  22.  
  23. class CPreviewWnd : public CWnd
  24. {
  25. // Construction
  26. public:
  27.     CPreviewWnd();
  28.  
  29. // Attributes
  30. public:
  31.     IDrawing *m_pPreviewDrawing;
  32.     View *m_pPreviewView;
  33.  
  34.     IGraphic *m_pPreviewGraphic;
  35.     Graphics *m_pPreviewGrs;/// = NULL;
  36.     
  37.     Views *m_pViewsCol;
  38.     IApplication *m_pIApp;/// = NULL;
  39.     Drawings *m_pDrawCol;
  40.  
  41.  
  42.     BOOL    m_FirstStart;
  43.     APPDRAWINGNEWEX m_pfAppDwgNew;
  44.     APPGETCURRENTAPP m_pfGetApp;
  45.     long m_lApp;
  46.     long m_lDwg;
  47.     CString m_cstrSelected;
  48.  
  49.  
  50. // Operations
  51. public:
  52.  
  53. // Overrides
  54.     // ClassWizard generated virtual function overrides
  55.     //{{AFX_VIRTUAL(CPreviewWnd)
  56.     //}}AFX_VIRTUAL
  57.  
  58. // Implementation
  59.     // Zoom to the extents of the drawing and refresh the window
  60.     void ZoomAndInvalidate();
  61.  
  62.  
  63.  
  64. public:
  65.     void DoPreview();
  66.     void ClearAll();
  67.     void Clear();
  68.     void DisplayPreview();
  69.     void CreatePreview();
  70.     virtual ~CPreviewWnd();
  71.  
  72.     // Generated message map functions
  73. protected:
  74.     //{{AFX_MSG(CPreviewWnd)
  75.     afx_msg void OnPaint();
  76.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  77.     //}}AFX_MSG
  78.     DECLARE_MESSAGE_MAP()
  79. };
  80.  
  81. /////////////////////////////////////////////////////////////////////////////
  82.  
  83. //{{AFX_INSERT_LOCATION}}
  84. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  85.  
  86. #endif // !defined(AFX_VIEWWND_H__101E4613_73CC_11D2_82DA_006052012837__INCLUDED_)
  87.